<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>demo-选项式</title>
</head>

<body>


  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  <!--引入样式 -->
  <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css" />
  <!-- 引入组件库 -->
  <script src="https://unpkg.com/element-plus"></script>


  文档地址：https://element-plus.org/zh-CN/guide/design.html
  <div id="app">
    <el-button>{{ message }}</el-button>
    <div style="margin: 40px;">
      <el-tag>这里是模版内容：{{count}}次点击</el-tag>
    </div>
    <div>
      <el-button v-on:click="clickButton">按钮</el-button>
    </div>
  </div>
  <script>
    const App = {
      data() {
        return {
          message: "Hello Element Plus",
          count: 0,
        };
      },
      methods: {
        clickButton() {
          this.count = this.count + 1
        }
      }
    };
    const app = Vue.createApp(App);
    app.use(ElementPlus);
    app.mount("#app");
  </script>
</body>

</html>